const express = require("express")
const expressjoi = require("@escook/express-joi")
const { reg_login_scheam } = require("../scheam/user")
const userrouter = express.Router()

const userControl = require("../control/user")

userrouter.post("/login", expressjoi(reg_login_scheam), userControl.login)

userrouter.post("/reguser", expressjoi(reg_login_scheam), userControl.reguser)

module.exports = userrouter
